package stu.xjtu.physical.model.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lsong
 * @since 2024-03-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OxygenInfo对象", description="")
public class OxygenInfo extends Model<OxygenInfo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

            @ApiModelProperty(value = "最低含氧量")
    private Integer lowestOxygen;

            @ApiModelProperty(value = "最低脉率")
    private Integer lowestPluseRate;

            @ApiModelProperty(value = "最低灌注指数")
    private int lowestPrefusionIndex;

            @ApiModelProperty(value = "记录时长")
    private Integer recordTime;

    private String beginTime;

    private String endTime;

            @ApiModelProperty(value = "氧含量低于90时长")
    private Integer lowerTime;

            @ApiModelProperty(value = "平均氧含量")
    private Integer averageOxygen;

            @ApiModelProperty(value = "平均脉率")
    private Integer averagePluseRate;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;

    private String oxygenValues;

            @ApiModelProperty(value = "脉率")
    private String pluseRateValues;

            @ApiModelProperty(value = "脉搏波图")
    private String pluseWaveform;

            @ApiModelProperty(value = "登陆用户")
    private Long uId;

            @ApiModelProperty(value = " 家人id")
    private Long userId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
